package com.m3958.firstgwt.client.place;

import com.m3958.firstgwt.client.MyPlace;
import com.m3958.firstgwt.client.types.ViewNameEnum;

public class AssetFolderEditPlace extends MyPlace{
	
	private String parentId;
	
	private String assetFolderId;
	
	
	public AssetFolderEditPlace(String allParams){
		String[] ss = allParams.split(",");
		this.parentId = ss[0];
		if(ss.length > 1)this.assetFolderId = ss[1];
	}
	
	public AssetFolderEditPlace(String parentId,String assetFolderId){
		this.parentId = parentId;
		this.assetFolderId = assetFolderId;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	@Override
	public String getToken() {
		return ViewNameEnum.ASSET_FOLDER_EDIT.toString().toLowerCase() + "/" + parentId + "," + assetFolderId;
	}

	public void setAssetFolderId(String assetFolderId) {
		this.assetFolderId = assetFolderId;
	}

	public String getAssetFolderId() {
		return assetFolderId;
	}

}
